package use.thread;

public class One implements Runnable{
    @Override
    public void run() {
        System.out.println("线程One启动成功,实现Runnable接口--" + Thread.currentThread().getId() + "--level:" + Thread.currentThread().getPriority() );
        try {
            //Thread.yield();
            Thread.sleep(5000);
            System.out.println("5秒-----" + Thread.currentThread().getName() + " id:" + Thread.currentThread().getId());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
